package com.xydtech.ecard.ecard.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 商户移交记录对象 ecard_merchant_handover
 *
 * @author xydtech
 * @date 2023-07-27
 */
public class EcardApiMerchantHandover extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 商户ID */
    @Excel(name = "商户ID")
    private Long merchantId;

    /** 移交人ID */
    @Excel(name = "移交人ID")
    private Long transferId;

    /** 接收人ID */
    @Excel(name = "接收人ID")
    private Long recipientId;

    /** 移交人机构id */
    @Excel(name = "移交人机构id")
    private Long transferDeptId;

    /** 接收人机构id */
    @Excel(name = "接收人机构id")
    private Long recipientDeptId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creationTime;

    /** 商户类型：1-个人，2-商户，3-企业，4-新型农业主体 */
    private String merchantType;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMerchantId(Long merchantId)
    {
        this.merchantId = merchantId;
    }

    public Long getMerchantId()
    {
        return merchantId;
    }
    public void setTransferId(Long transferId)
    {
        this.transferId = transferId;
    }

    public Long getTransferId()
    {
        return transferId;
    }
    public void setRecipientId(Long recipientId)
    {
        this.recipientId = recipientId;
    }

    public Long getRecipientId()
    {
        return recipientId;
    }
    public void setTransferDeptId(Long transferDeptId)
    {
        this.transferDeptId = transferDeptId;
    }

    public Long getTransferDeptId()
    {
        return transferDeptId;
    }
    public void setRecipientDeptId(Long recipientDeptId)
    {
        this.recipientDeptId = recipientDeptId;
    }

    public Long getRecipientDeptId()
    {
        return recipientDeptId;
    }
    public void setCreationTime(Date creationTime)
    {
        this.creationTime = creationTime;
    }

    public Date getCreationTime()
    {
        return creationTime;
    }

    public String getMerchantType() {
        return merchantType;
    }

    public void setMerchantType(String merchantType) {
        this.merchantType = merchantType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("merchantId", getMerchantId())
                .append("remark", getRemark())
                .append("transferId", getTransferId())
                .append("recipientId", getRecipientId())
                .append("transferDeptId", getTransferDeptId())
                .append("recipientDeptId", getRecipientDeptId())
                .append("creationTime", getCreationTime())
                .append("merchantType", getMerchantType())
                .toString();
    }
}
